import React,{Component} from 'react'
import {StackNavigator,TabNavigator} from 'react-navigation'

import Home from '../pages/home'
import History from '../pages/history'
import List from '../pages/list'
import My from '../pages/my'
import Home2 from '../pages/home2'

const tabbarRoute={
    Home:{
        screen:Home,
    },
    History:{
        screen:History,
    },
    List:{
        screen:List,
    },
    My:{
        screen:My,
    }
}
const tabbarConfig={
   swipeEnabled:true,
   animationEnabled:true,
   lazy:false,
   tabBarOptions:{
    activeTintColor:'red',
    inactiveTintColor:'gray',
   }
}

const tabbar = TabNavigator(tabbarRoute,tabbarConfig)

const stackRoute={
    Home1:{
        screen:tabbar,
    },
        Home2:{
        screen:Home2,
    },
}

const Stack = StackNavigator(stackRoute)
export {Stack}